package com.yangrd.airship.generator.page;

import com.yangrd.airship.generator.page.base.AbstractMetaInfo;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;

import java.util.List;

/**
 * @author yangrd
 * @date 2021/11/8
 */
@EqualsAndHashCode(callSuper = false)
@Data
@AllArgsConstructor(staticName = "of")
@NoArgsConstructor
public class PageAction extends AbstractMetaInfo<PageAction> {

    private Action action;

    private List<String> columns;

    public enum Action {

        /**
         * 增
         */
        ADD,

        /**
         * 删
         */
        DELETE,

        /**
         * 改
         */
        MODIFY,

        VIEW

    }
}
